:root {
  --adm-color-primary: #1677ff;
  --adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
}

html {
  -webkit-tap-highlight-color: transparent;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--adm-font-family);
  background: #f5f5f5;
}

#__next {
  margin: 0 auto;
  position: relative;
  max-width: 600px;
  min-height: 100vh;
  background: #fff;
  overflow-x: hidden;
}

/* 添加媒体查询以确保在大屏幕上的效果 */
@media screen and (min-width: 600px) {
  #__next {
    width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
}

/* 安全区适配 */
@supports (padding-top: constant(safe-area-inset-top)) {
  body {
    /* 兼容 iOS < 11.2 */
    padding-top: constant(safe-area-inset-top);
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  body {
    /* 兼容 iOS >= 11.2 */
    padding-top: env(safe-area-inset-top);
  }
}